<?php
// +----------------------------------------------------------------------
// | 平台端菜单设置
// +----------------------------------------------------------------------
return [
    [
        'name' => 'ADDON_HOTEL_ROOT',
        'title' => '概况',
        'url' => 'hotel://hotel/index/index',
        'is_show' => 1,
        'sort' => 1,
    ],

    [
        'name' => 'ADDON_HOTEL_GOODS_ROOT',
        'title' => '房间管理',
        'url' => 'hotel://hotel/room/lists',
        'parent' => '',
        'is_show' => 1,
        'is_control' => 1,
        'is_icon' => 0,
        'sort' => 3,
        'child_list' => [
            [
                'name' => 'ADDON_HOTEL_ROOM_MANAGE',
                'title' => '房间列表',
                'url' => 'hotel://hotel/room/lists',
                'is_show' => 1,
                'is_control' => 1,
                'is_icon' => 0,
                'sort' => 1,
                'child_list' => [
                    [
                        'name' => 'ADDON_HOTEL_ROOM_ADD',
                        'title' => '添加房间',
                        'url' => 'hotel://hotel/room/addroom',
                        'is_show' => 0
                    ],
                    [
                        'name' => 'ADDON_HOTEL_ROOM_EDIT',
                        'title' => '编辑房间',
                        'url' => 'hotel://hotel/room/editroom',
                        'is_show' => 0
                    ],
                    [
                        'name' => 'ADDON_HOTEL_ROOM_DELETE',
                        'title' => '删除房间',
                        'url' => 'hotel://hotel/room/deleteroom',
                        'is_show' => 0
                    ],
                    [
                        'name' => 'ADDON_HOTEL_ROOM_EDIT_SORT',
                        'title' => '修改房间排序',
                        'url' => 'hotel://hotel/room/editroomfield',
                        'is_show' => 0
                    ],
                ]
            ],
            [
                'name' => 'ADDON_HOTEL_ROOM_TYPE_MANAGE',
                'title' => '房间类型',
                'url' => 'hotel://hotel/roomtype/lists',
                'is_show' => 1,
                'is_control' => 1,
                'is_icon' => 0,
                'sort' => 1,
                'child_list' => [
                    [
                        'name' => 'ADDON_HOTEL_ROOM_TYPE_ADD',
                        'title' => '添加房间',
                        'url' => 'hotel://hotel/roomtype/add',
                        'is_show' => 0
                    ],
                    [
                        'name' => 'ADDON_HOTEL_ROOM_TYPE_EDIT',
                        'title' => '编辑房间',
                        'url' => 'hotel://hotel/roomtype/edit',
                        'is_show' => 0
                    ],
                    [
                        'name' => 'ADDON_HOTEL_ROOM_TYPE_DELETE',
                        'title' => '删除房间',
                        'url' => 'hotel://hotel/roomtype/delete',
                        'is_show' => 0
                    ],
                ]
            ],
        ]
    ],
    [
        'name' => 'ADDON_HOTEL_ORDER_ROOT',
        'title' => '订单管理',
        'url' => 'hotel://hotel/order/lists',
        'parent' => '',
        'is_show' => 1,
        'sort' => 4,
        'child_list' => [
            [
                'name' => 'ADDON_HOTEL_ORDER_EXPRESS',
                'title' => '订单列表',
                'url' => 'hotel://hotel/order/lists',
                'is_show' => 1,
                'sort' => 1,
                "child_list" => [
                    [
                        'name' => 'ADDON_HOTEL_EXPRESS_ORDER_DETAIL',
                        'title' => '订单详情',
                        'url' => 'hotel://hotel/order/detail',
                        'is_show' => 0
                    ],
                    /*[
                        'name' => 'ADDON_CITY_VIRTUAL_ORDER_EXPORT',
                        'title' => '导出订单报表',
                        'url' => 'hotel://hotel/order/export',
                        'is_show' => 0,
                    ],*/
                ]
            ],
           /* [
                'name' => 'ADDON_CITY_ORDER_REFUND',
                'title' => '退款维权',
                'url' => 'city://city/refund/lists',
                'is_show' => 1,
                'sort' => 2,
                "child_list" => [
                    [
                        'name' => 'ADDON_CITY_ORDER_REFUND_DETAIL',
                        'title' => '退款详情',
                        'url' => 'city://city/refund/detail',
                        'is_show' => 0
                    ],
                ]
            ],*/

        ],
    ],
    [
        'name' => 'ACCOUNT_ROOT',
        'title' => '资产',
        'url' => 'hotel://hotel/account/dashboard',
        'is_show' => 1,
        'sort' => 8,
        'child_list' => [
            [
                'name' => 'ACCOUNT_DASHBOARD_INDEX',
                'title' => '资产概况',
                'url' => 'hotel://hotel/account/dashboard',
                'is_show' => 1,
                'is_control' => 1,
                'is_icon' => 0,
                'sort' => 1,
                'child_list' => [
                    [
                        'name' => 'ACCOUNT_ORDERLIST',
                        'title' => '交易记录',
                        'url' => 'hotel://hotel/account/orderlist',
                        'is_show' => 0,
                        'is_control' => 1,
                        'sort' => 1,
                    ],
                ]
            ],
            [
                'name' => 'HOTEL_WITHDRAW',
                'title' => '提现记录',
                'url' => 'hotel://hotel/withdraw/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 2,
                'child_list' => [
                    [
                        'name' => 'HOTEL_WITHDRAW_APPLY',
                        'title' => '申请提现',
                        'url' => 'hotel://hotel/withdraw/apply',
                        'is_show' => 0,
                        'is_control' => 1,
                        'sort' => 1,
                    ],
                ]
            ],
            [
                'name' => 'ACCOUNT_SETTLEMENT',
                'title' => '酒店结算',
                'url' => 'hotel://hotel/settlement/lists',
                'is_show' => 1,
                'is_control' => 1,
                'sort' => 4,
                'child_list' => [
                    [
                        'name' => 'ACCOUNT_SETTLEMENT_DETAIL',
                        'title' => '结算详情',
                        'url' => 'hotel://hotel/settlement/detail',
                        'is_show' => 0,
                        'is_control' => 1,
                        'sort' => 1,
                    ],
                ]
            ],
        ]
    ],
    [
        'name' => 'ADDON_HOTEL_CONFIG',
        'title' => '酒店设置',
        'url' => 'hotel://hotel/hotel/config',
        'is_show' => 1,
        'is_control' => 1,
        'is_icon' => 0,
        'sort' => 6,
        'child_list' => [
            [
                'name' => 'ADDON_HOTEL_WEBSITE_CONFIG',
                'title' => '酒店设置',
                'url' => 'hotel://hotel/hotel/config',
                'is_show' => 1,
                'sort' => 1,
            ],
        ],
    ],
    [
        'name' => 'MEMBER_ROOT',
        'title' => '会员',
        'url' => 'hotel://hotel/member/lists',
        'is_show' => 1,
        'sort' => 7,
        'child_list' => [
            [
                'name' => 'MEMBER_MANAGE',
                'title' => '会员管理',
                'url' => 'hotel://hotel/member/lists',
                'is_show' => 1,
                'sort' => 1,
                'child_list' => [
                    [
                        'name' => 'MEMBER_DETAIL',
                        'title' => '会员详情',
                        'url' => 'hotel://hotel/member/detail',
                        'is_show' => 0
                    ],
                ]
            ],
        ]
    ],
    [
        'name' => 'ADDON_HOTEL_USER',
        'title' => '管理员',
        'url' => 'hotel://hotel/user/user',
        'is_show' => 1,
        'sort' => 7,
        'child_list' => [
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_INDEX',
                'title' => '用户列表',
                'url' => 'hotel://hotel/user/user',
                'is_show' => 1,
                'sort' => 1,
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_ADD',
                'title' => '添加用户',
                'url' => 'hotel://hotel/user/adduser',
                'is_show' => 0,
                'sort' => 0,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_EDIT',
                'title' => '编辑用户',
                'url' => 'hotel://hotel/user/edituser',
                'is_show' => 0,
                'sort' => 0,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_GROUP',
                'title' => '用户组',
                'url' => 'hotel://hotel/user/group',
                'is_show' => 1,
                'sort' => 2,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_GROUP_ADD',
                'title' => '添加用户组',
                'url' => 'hotel://hotel/user/addgroup',
                'is_show' => 0,
                'sort' => 0,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_GROUP_EDIT',
                'title' => '编辑用户组',
                'url' => 'hotel://hotel/user/editgroup',
                'is_show' => 0,
                'sort' => 0,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_USER_GROUP_DELETE',
                'title' => '删除用户组',
                'url' => 'hotel://hotel/user/deletegroup',
                'is_show' => 0,
                'sort' => 0,
                'child_list' => [],
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_MANAGE_USERLOG',
                'title' => '操作日志',
                'url' => 'hotel://hotel/user/userlog',
                'is_show' => 1,
                'sort' => 3,
            ],
            [
                'name' => 'ADDON_HOTEL_CONFIG_MANAGE_USERLOG_DELETE',
                'title' => '删除日志',
                'url' => 'hotel://hotel/user/deleteuserlog',
                'is_show' => 0,
                'sort' => 1,
            ],

        ],
    ],
];